<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //1.利用函数求人有两个数的和
        function add (num1,num2){
            console.log(num1+ num2);
        }
        add(3,5);
        add(3, 15);
        //2.利用函数求任意两个数值间的和 3-10
        function sum(n1,n2){
            var result = 0;
            for (var i = n1; i <= n2; i++){
                result =result +i;
            }
            console.log(result);
        }
        sum (0,100);
        sum (0,5);
        //3.求100 内，3的倍数的和
        //4.数组的遍历
        //5.数组的翻转
    </script>
</head>
<body>
    
</body>
</html>